﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Q.M.Finance.Domain.Entity
{
    /// <summary>
    /// 收入管理表
    /// </summary>
    [SugarTable("income")]
    public class income
    {
        /// <summary>
        /// 收入单号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "收入单号", Length = 50)]
        public string receiptid { get; set; }

        /// <summary>
        /// 收入主题
        /// </summary>
        [SugarColumn(ColumnDescription = "收入主题", Length = 50)]
        public string? income_theme { get; set; }

        /// <summary>
        /// 收入类型
        /// </summary>
        [SugarColumn(ColumnDescription = "收入类型")]
        public string? revenuetype_name { get; set; }

        /// <summary>
        /// 收入日期
        /// </summary>
        [SugarColumn(ColumnDescription = "收入日期")]
        public DateTime? income_date { get; set; }

        /// <summary>
        /// 销售订单
        /// </summary>
        [SugarColumn(ColumnDescription = "销售订单", Length = 50)]
        public string? salesid { get; set; }

        /// <summary>
        /// 收入金额
        /// </summary>
        [SugarColumn(ColumnDescription = "收入金额")]
        public decimal incomes { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 50)]
        public string? remark { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
       [SugarColumn(ColumnDescription = "客户ID")]
        public int customerid { get; set; }
         /// <summary>
        /// 付款方
        /// </summary>
        [SugarColumn(ColumnDescription = "付款方", Length = 50)]
        public string? payer { get; set; }
        /// <summary>
        /// 银行账号
        /// </summary>
        [SugarColumn(ColumnDescription = "银行账号", Length = 50)]
        public string? payer_bank_account { get; set; }
    }
}
